package com.sysd.imgboard.model;

import java.io.Serializable;

import com.google.appengine.api.datastore.Blob;
import com.google.appengine.api.datastore.Key;

import org.slim3.datastore.Attribute;
import org.slim3.datastore.Model;

@Model
public class Image implements Serializable {

    private static final long serialVersionUID = 1L;

    @Attribute(primaryKey = true)
    private Key key;

    @Attribute(version = true)
    private Long version;
    
    @Attribute(persistent = true)
    private Long threadId;
    
    @Attribute(persistent = true)
    private Long childId;
    
    @Attribute(persistent = true)
    private Long no;
    
    @Attribute(persistent = true)
    private Blob original;
    
    @Attribute(persistent = true)
    private Blob middle;
    
    @Attribute(persistent = true)
    private Blob small;
    
    
    /**
     * Returns the key.
     *
     * @return the key
     */
    public Key getKey() {
        return key;
    }

    /**
     * Sets the key.
     *
     * @param key
     *            the key
     */
    public void setKey(Key key) {
        this.key = key;
    }

    /**
     * Returns the version.
     *
     * @return the version
     */
    public Long getVersion() {
        return version;
    }

    /**
     * Sets the version.
     *
     * @param version
     *            the version
     */
    public void setVersion(Long version) {
        this.version = version;
    }

    public Blob getOriginal() {
        return original;
    }

    public void setOriginal(Blob original) {
        this.original = original;
    }

    public Blob getMiddle() {
        return middle;
    }

    public void setMiddle(Blob middle) {
        this.middle = middle;
    }

    public Blob getSmall() {
        return small;
    }

    public void setSmall(Blob small) {
        this.small = small;
    }

    public Long getThreadId() {
        return threadId;
    }

    public void setThreadId(Long threadId) {
        this.threadId = threadId;
    }

    public Long getChildId() {
        return childId;
    }

    public void setChildId(Long childId) {
        this.childId = childId;
    }

    public Long getNo() {
        return no;
    }

    public void setNo(Long no) {
        this.no = no;
    }


}
